package annotation;

/**
 * User: heihaier@xfuweng.com
 * Date: 2015/7/3
 * Time: 14:48
 */
public class Student {

    private String name;

    private int age;

    public String getName() {
        return name;
    }

    @ValueBind(type = ValueBind.fieldType.STRING, value = "heihaier")
    public void setName(String name) {

        this.name = name;
    }

    public int getAge() {
        return age;
    }

    @ValueBind(type = ValueBind.fieldType.INT, value = "25")
    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {

        return String.format("name: {}, age: {}", name, age);
    }
}
